package com.huaxiafinance.management.constant;

public class CommonConstant {
	public static final String USER_TYPE_BOSS = "01";

	public static final String USER_TYPE_WORKER = "02";

	public static final String USER_TYPE_STUDENT = "03";

	public static final String USER_TYPE_FREELANCE = "04";

	/**
	 * 订单状态
	 */

	// 审批中
	public static final String ORDER_STATUS_HANDLING = "ST01";

	// 审批通过
	public static final String ORDER_STATUS_APPROVAL = "ST02";

	// 拒绝
	public static final String ORDER_STATUS_REFUSE = "ST03";

	// 补件
	public static final String ORDER_STATUS_SUPPLEMENT = "ST04";

	// 取消申请
	public static final String ORDER_STATUS_CANCEL = "ST05";

	// 订单逾期
	public static final String ORDER_STATUS_OVERDUE = "ST06";

	// 订单结束
	public static final String ORDER_STATUS_FINISH = "ST07";

	// 完善资料
	public static final String ORDER_STATUS_IMPROVE = "ST08";

	// 降低额度
	public static final String ORDER_STATUS_DERATING = "ST09";

	// edit by zhouhy for 后台增加多待放款到已取消的状态
	public static final String ORDER_STATUS_LOAN_CANCEL = "ST11";

	// edit by zhouhy for 后台增加从已放款到已退货的状态
	public static final String ORDER_STATUS_DOCUMENT_CANCEL = "ST10";

	/**
	 * 放款状态
	 */

	// 审核中
	public static final String LOAN_STATUS_REVIEWING = "LT01";

	// 已放款
	public static final String LOAN_STATUS_PASS = "LT02";

	public static String chooise(String orderStatus) {
		switch (orderStatus) {
			case "0020HX1000":
				orderStatus = ORDER_STATUS_HANDLING;
				break;
			case "0021HX1000":
				orderStatus = ORDER_STATUS_HANDLING;
				break;
			case "0022HX1000":
				orderStatus = ORDER_STATUS_HANDLING;
				break;
			case "0025HX1000"://3.0添加 由于渠道管理（财富平台分配）
				orderStatus = ORDER_STATUS_HANDLING;
				break;
			case "0070HX1000":
				orderStatus = ORDER_STATUS_APPROVAL;
				break;
			case "0080HX1000":
				orderStatus = ORDER_STATUS_APPROVAL;
				break;
			case "0031HX1000":
				orderStatus = ORDER_STATUS_REFUSE;
				break;
			case "0040HX1000":
				orderStatus = ORDER_STATUS_SUPPLEMENT;
				break;
			case "3000HX1000":
				orderStatus = ORDER_STATUS_CANCEL;
				break;
			case "3001HX1000":
				orderStatus = ORDER_STATUS_CANCEL;
				break;
			case "3002HX1000":
				orderStatus = ORDER_STATUS_CANCEL;
				break;
			case "0090HX1000":
				orderStatus = ORDER_STATUS_FINISH;
				break;
			case "0041HX1000":
				orderStatus = ORDER_STATUS_DERATING;
				break;
			// edit by zhouhy 已取消是从“待放款”到“已取消”； 为了避免app升级，暂时改成客户取消状态
			case "3004HX1000":
				orderStatus = ORDER_STATUS_LOAN_CANCEL;
				break;
			// 已退货 // edit by zhouhy 已取消是从“待放款”到“已取消”； 为了避免app升级，暂时改成客户取消状态
			case "3005HX1000":
				orderStatus = ORDER_STATUS_DOCUMENT_CANCEL;
				break;
			case "0065HX1000"://3.0  平安上标中 暂定订单完成
				orderStatus = ORDER_STATUS_FINISH;
				break;
			default:
				break;
		}
		return orderStatus;
	}

	/**
	 * 时间常量,格式
	 */
	public static final String START_TIME=" 00:00:00";
	public static final String END_TIME=" 23:59:59";
	public static final String FORMAT_TIME="yyyy/MM/dd HH:mm:ss";

    /**
     * 图片类型
     */
    public static final Integer 图片类型_商户头图 = 1;
    public static final Integer 图片类型_商户执照 = 2;

    //3.1奖项荣誉图片类型
	public static final Integer IMAGE_HONOR = 7;

	/**
	 * 积分订单状态
	 * 订单状态（1-待支付 2-处理中 3-待发货 4-已发货 5-已完成 6-已取消）
	 */
	public static final int ORDER_STATUS_ONE=1;
	public static final int ORDER_STATUS_TWO=2;
	public static final int ORDER_STATUS_THREE=3;
	public static final int ORDER_STATUS_FOUR=4;
	public static final int ORDER_STATUS_FIVE=5;
	public static final int ORDER_STATUS_SIX=6;


	/**
	 * 美妆护肤
	 */
	public static final int mzhf = 1;
	/**
	 * 手机数码
	 */
	public static final int sjsm = 2;
	/**
	 * 时尚轻奢护肤
	 */
	public static final int ssqs = 3;
	/**
	 * 健康养生
	 */
	public static final int jkys = 4;


	/**
	 * 物流信息
	 * express_status 快递状态（1:已发货、2:已签收、3:其他）
	 */
	public static final int EXPRESS_STATUS_ONE=1;
	public static final int EXPRESS_STATUS_TWO=2;
	public static final int EXPRESS_STATUS_THREE=3;

	/**
	 * 快递公司
	 */
	public static final String COURIER_SERVICES_COMPANY="1012";
	/**
	 * 快递状态
	 */
	public static final String EXPRESS_STATUS="1013";

	/**
	 *规则编号初始化
	 */
	public static final String TRIGGER_NUMBER="01";
	/**
	 *添加积分
	 */
	public static final int ADD_SCORE = 1;
	/**
	 * 积分补发的triggerId
	 */
	public static final int SCORE_RESUPPLYMENT_TRIGGER_ID = 14;

	/**
	 * 默认页数
	 */
	public static final int PAGE=0;
	public static final int ROWS=10;


    //56：后台人员取消订单
	public static final Integer OPERATION_STATUS_TWENTY_ONE=56;
    //60：客户绑定批扣卡；
	public static final Integer OPERATION_STATUS_TWELVE=60;

	/**
	 * 批次状态：0：全部；1：有效期；2：过期
	 */
	public static final Integer ALL_BATCH=0;

	public static final Integer EFFECTIVE_BATCH=1;

	public static final Integer INVALID_BATCH=2;

	// 批次类型
	public static final String BATCH_TYPE = "1015";

	// 邀请渠道类型
	public static final String CHANNEL_TYPE = "1016";

	// 提现处理类型
	public static final String PRESENT_HANDLE = "1020";
	// 合伙人套餐类别
	public static final String PACKAGE_TYPE = "1021";
	// 合伙人资金金钱变动
	public static final String BONUS_TYPE= "1022";
	//合伙人套餐日志
	public static final int PACKAGE_LOG_TYPE= 3;
	//可选套餐图片
	public static final int OPTIONAL_PACKAGE_IMG= 16;
	//套餐描述图片
	public static final int PACKAGE_DESCRIPTION_IMG = 17;
	//套餐附加图片
	public static final int PACKAGE_ADDTIONAL_IMG = 18;
	/**
	 * 短信模板code
	 */
	public static final String REGISTER="SMS_129745290";
	public static final String LOGIN="SMS_129740348";
	public static final String MODIFY_PASSWORD="SMS_129740352";
	public static final String SET_PASSWORD="SMS_129755323";

}
